
<% include("../common/head.html"){} %>

<div class="easyui-panel" data-options="fit:true,boarder:false">
	<table class="easyui-datagrid" id="dgSyslog" data-options="url:'/syslog/query',
		rownumbers:true,pagination:true,pageNumber:1,pageSize:20,pagePosition:'bottom',
		fit:true,toolbar:'#sysLogSearchform',singleSelect:true,showFooter:true">
		<thead>
			<tr>
				<th data-options="field:'id',width:100,sortable:true">Id</th>
				<th data-options="field:'starttime',width:160">时间</th>
				<th data-options="field:'username',width:100">操作者</th>
				<th data-options="field:'controller',width:160">模块</th>
            	<th data-options="field:'method',width:100">方法</th>
            	<th data-options="field:'parameter',width:200">参数</th>
            	<th data-options="field:'ip',width:100">Ip</th>
			</tr>
		</thead>
	</table>
	
	<div id ="sysLogSearchform" class="tableSearch" >
		<input id="starttime" class="Wdate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" placeholder="开始时间" >
		<input id="endtime"   class="Wdate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" placeholder="结束时间" >
		<button class="btn btn-default" id="syslog_submit_search">查询</button>
		<button class="btn btn-default" onclick="resetForm();">重 置</button>
 	</div>
</div>
<script>
$("#syslog_submit_search").click(function () {
                $('#dgSyslog').datagrid('load',{
                	starttime: $('#starttime').val(),
                	endtime: $('#endtime').val()
				});
            });
</script>

<% include("../common/footer.html"){} %>
